using SumerCoreDevOps.Shared.Enums;

namespace SumerCoreDevOps.Shared.Models;

/// <summary>
/// TCP 消息封装
/// </summary>
public class TcpMessage<T> where T : class
{
    /// <summary>
    /// 消息头
    /// </summary>
    public TcpMessageHeader Header { get; set; } = null!;

    /// <summary>
    /// 消息体
    /// </summary>
    public T? Body { get; set; }

    /// <summary>
    /// CRC32 校验码
    /// </summary>
    public uint Checksum { get; set; }
}
